package com.yeswater.redis7.controller;

import com.yeswater.redis7.filter.GuavaBloomFilter;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description:
 * @author： yeswater
 * @create： 2024/6/28
 */

@Api(tags = "google工具Guava处理布隆过滤器")
@RestController
@Slf4j
public class GuavaBloomFilterController {
	@Resource
	private GuavaBloomFilter guavaBloomFilter;
	
	@ApiOperation("guava布隆过滤器插入100万样本数据并额外10W测试是否存在")
	@RequestMapping(value = "/guavafilter", method = RequestMethod.GET)
	public void guavaBloomFilter() {
		guavaBloomFilter.guavaBloomFilter();
	}
}
